
class Student{
    public static String name;
    public static int grade;
    public int c;
    public String getname(){
        return name;
    }
    public int getgrade(){
        return grade;
    }
    public void setname(String name){
        this.name=name;
    }
    public void setgrade(int grade){
        this.grade=grade;
    }

    public Student(String name) {
        System.out.println("good");
        System.out.println(c);
    }
    public Student(){

    }

}
class Xiaoxuesheng extends Student{

    public Xiaoxuesheng() {
        super("zahng");
        super.c=10;
    }
}
public class Test {
    public static void main(String[] args) {
        Student student1=new Student();
        Xiaoxuesheng xiaoxuesheng=new Xiaoxuesheng();
        student1.setgrade(10);
        int a=student1.getgrade();
        System.out.println(a);
        student1.setname("张三");
        String name=student1.getname();
        System.out.println(name);

    }

}